<include file="application/admin/view/public/left.html"/>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/kindeditor/kindeditor.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/kindeditor/plugins/prettify.js"></script>
<script>
	function checkForm(){
		editor.sync();
		var name = document.getElementById('title').value;

		if(name != ""){
			document.getElementById('myform').submit();
		}else{
			alert('请填写标题');
		}
	}
</script>

<div class="main-wrap">
  <div class="crumb-wrap">
    <div class="crumb-list"><i class="icon-font"></i><a href="{:U('Index/index')}">首页</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="{:U('Config/huilv')}">滚动条数据管理</a><span class="crumb-step">&gt;</span><span>详情</span></div>
  </div>
  <div class="result-wrap">
    <div class="result-content">
      <form action="{:U('Config/details')}" method="post" id="myform" name="myform" enctype="multipart/form-data" >
        
        <table class="insert-tab" width="100%">
          <tbody>
              <th><i class="require-red">*</i>货币1	：</th>
              <td><input class="common-text required" id="name" name="name_left" size="50" value="{$list.name_left}" type="text">
              	  <input class="common-text required"  name="id" size="50" value="{$list.id}" type="hidden"></td>
              </tr>
              <tr>
              <th><i class="require-red">*</i>货币2	：</th>
              <td><input class="common-text required" id="price" name="name_right" size="50" value="{$list.name_right}" type="text"></td>
              </tr>
            <tr>
                 <th><i class="require-red">*</i>汇率	：</th>
             	 <td><input class="common-text required" id="num" name="num" size="50" value="{$list.num}" type="text"></td>
            </tr>
            <tr>
                 <th><i class="require-red">*</i>趋势	：</th>
             	 <td>
					<label><input type="radio" name="sign" value="1"  /> 上</label>
					<label><input type="radio" name="sign" value="0"  /> 下</label>
				 </td>
            </tr>
            <tr>
              <th></th>
              <td><input class="btn btn-primary btn6 mr10" value="提交"  type="submit" onclick="checkForm()" >
                <a href="{:U('Config/huilv')}"><input class="btn btn6"  value="返回" type="button"></td></a>
            </tr>
          </tbody>
        </table>
      </form>
    </div>
  </div>
</div>
<!--/main-->

</div>
</body></html>
<script>
$(".sub-menu").eq(9).show();
$("#myform").ready(function(e) {
	var num = parseInt($("#article_category_id").val());
	switch(num){
		case 1:
			$(".sub-menu").eq(9).children("li").eq(0).addClass("on");
			break;
		case 2:
			$(".sub-menu").eq(9).children("li").eq(3).addClass("on");
			break;
		case 7:
			$(".sub-menu").eq(9).children("li").eq(2).addClass("on");
			break;
		default:
			$(".sub-menu").eq(9).children("li").eq(1).addClass("on");
		}
});
</script>
